<template>
    <div>
        <top-label v-model="index">
            <span :slot="0">企业合法证照</span>
            <span :slot="1">考核合格证照</span>
        </top-label>
        <el-row>
            <keep-alive>
                <enterprise-licence v-if="index===0"></enterprise-licence>
                <personal-licence v-else-if="index===1"></personal-licence>
            </keep-alive>
        </el-row>
    </div>
</template>

<script>
    import TopLabel from "~/components/TopLabel";
    import EnterpriseLicence from "~/views/basic-information/vaild-license/EnterpriseLicence";
    import PersonalLicence from "~/views/basic-information/vaild-license/PersonalLicence";

    export default {
        name: "ValidLicense",
        components:{
            PersonalLicence,
            EnterpriseLicence,
          TopLabel
        },
        data(){
            return{
                index:0
            }
        }
    }
</script>

<style scoped>

</style>
